home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1996 #15 / Monster Media Number 15 (Monster Media)(July 1996).ISO / os2 / sio155.zip / VMODEM.TXT < prev    next >
Text File  |  1996-06-27  |  40KB  |  905 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  
  11.  
  12.  
  13.  
  14.  
  15.  
  16.  
  17.  
  18.  
  19.  
  20.  
  21.  
  22.  
  23.  
  24.                                       VMODEM
  25.                            Technical Reference Manual
  26.  
  27.  
  28.  
  29.                      Copyright (c) 1995 by Raymond L. Gwinn
  30.                                 26 Tanager Place
  31.                           Beckley, West Virginia 25801
  32.                                All Rights Reserved
  33.  
  34.                                   June 23, 1996
  35.  
  36.  
  37.                               CompuServe: 71154,575
  38.                              InterNet: ray@gwinn.com
  39.                               Voice: 1-304-255-7900
  40.                                FAX: 1-304-255-7902
  41.                      BBS: 1-304-255-7903 or vmbbs.gwinn.com
  42.                             WEB http://www.gwinn.com
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.                                   INTRODUCTION
  59.  
  60.      The Virtual Modem is a concept that the author believes will change
  61.      the way serial data communications is done and thought of.  It is
  62.      going to bring the Internet alive more then ever before.  Perhaps it
  63.      will not be this implementation of a Virtual Modem, but the concept
  64.      will remain and be used for a long time.  The concept of the Virtual
  65.      Modem was born from the desire to make the SIO support BBS available
  66.      via Internet.  In only a few minutes, I was convinced the Virtual
  67.      Modem was a solution of a multitude of problems that Internet access
  68.      poses.
  69.  
  70.      The Virtual Modem removes most of the complexities and mysteries of
  71.      the Internet by allowing common, well understood, programs to be used
  72.      to access the Internet highway.  Users can use programs like PmComm
  73.      and TE/2 to download files from a BBS (across the Internet) using
  74.      common protocols like ZMODEM.  The dialing directories of terminal
  75.      programs can contain Internet addresses instead of phone numbers for
  76.      easy access to remote sites.
  77.  
  78.      BBS SysOps can simply declare one or more of their BBS's
  79.      communications ports as a Virtual Modem and users can then "dial" in
  80.      over the Internet and no BBS software changes should be necessary.  Is
  81.      your BBS ready for 20 million new users that can access it without
  82.      making a long distance call?  This Virtual Modem implements protocols,
  83.      including a Telnet server which allows most anyone on Internet to
  84.      access your system.
  85.  
  86.      Users transferring large volumes of data across phone lines (like
  87.      FidoNet echomail) can now use the Internet highway instead.  Again,
  88.      software changes should be minimal, if any at all.
  89.  
  90.      Vmodem is unique in that it has a dual personality of both Server and
  91.      Client.  The Server/Client personality is determined by the direction
  92.      of the connection (outgoing or incoming).
  93.  
  94.  
  95.  
  96.  
  97.      ii
  98.  
  99.                                 TABLE OF CONTENTS
  100.  
  101.      WHAT IS VMODEM  . . . . . . . . . . . . . . . . . . . . . . . . .    1
  102.  
  103.      DISTRIBUTION, ORDERING AND SUPPORT  . . . . . . . . . . . . . . .    2
  104.           Distribution and Ordering  . . . . . . . . . . . . . . . . .    2
  105.                SIO Distribution and Support BBS  . . . . . . . . . . .    2
  106.           Support  . . . . . . . . . . . . . . . . . . . . . . . . . .    2
  107.  
  108.      GETTING IT GOING  . . . . . . . . . . . . . . . . . . . . . . . .    5
  109.           TCP/IP Required  . . . . . . . . . . . . . . . . . . . . . .    5
  110.                TCP/IP Sockets  . . . . . . . . . . . . . . . . . . . .    5
  111.                The default port number . . . . . . . . . . . . . . . .    5
  112.  
  113.      The SIO.SYS command line  . . . . . . . . . . . . . . . . . . . .    5
  114.  
  115.      THE VIRTUAL MODEM . . . . . . . . . . . . . . . . . . . . . . . .    7
  116.           AT Commands Supported  . . . . . . . . . . . . . . . . . . .    7
  117.           S Registers Supported  . . . . . . . . . . . . . . . . . . .    8
  118.           Result Codes . . . . . . . . . . . . . . . . . . . . . . . .    8
  119.                NO CARRIER  . . . . . . . . . . . . . . . . . . . . . .    8
  120.                NO DIALTONE . . . . . . . . . . . . . . . . . . . . . .    8
  121.                  . . . . . . . . . . . . . . . . . . . . . . . . . . .    8
  122.                BUSY  . . . . . . . . . . . . . . . . . . . . . . . . .    8
  123.                CONNECT 57600/ARQ/VMP . . . . . . . . . . . . . . . . .    8
  124.                CONNECT 57600/ARQ/TEL . . . . . . . . . . . . . . . . .    8
  125.                RING  . . . . . . . . . . . . . . . . . . . . . . . . .    9
  126.                RINGING . . . . . . . . . . . . . . . . . . . . . . . .    9
  127.           Caveats  . . . . . . . . . . . . . . . . . . . . . . . . . .    9
  128.  
  129.      SECURITY  . . . . . . . . . . . . . . . . . . . . . . . . . . . .   10
  130.           Discussion . . . . . . . . . . . . . . . . . . . . . . . . .   10
  131.           Vmodem's Implementation  . . . . . . . . . . . . . . . . . .   10
  132.           Developers Information . . . . . . . . . . . . . . . . . . .   10
  133.  
  134.      DIALING EXAMPLES  . . . . . . . . . . . . . . . . . . . . . . . .   11
  135.  
  136.      Telnet  . . . . . . . . . . . . . . . . . . . . . . . . . . . . .   12
  137.           IBM's Telnet Client  . . . . . . . . . . . . . . . . . . . .   12
  138.  
  139.      Development and Debugging Tools . . . . . . . . . . . . . . . . .   13
  140.           Vmodem's Semaphores  . . . . . . . . . . . . . . . . . . . .   13
  141.           The Poor Man's Line Monitor (PMLM.EXE) . . . . . . . . . . .   13
  142.           VIEWPMLM.EXE . . . . . . . . . . . . . . . . . . . . . . . .   14
  143.           SIO's Utility (SU.EXE) . . . . . . . . . . . . . . . . . . .   14
  144.                IRQs that currently free for use  . . . . . . . . . . .   14
  145.  
  146.      Appendix A, Hardware Port and IRQ Assignments . . . . . . . . . .   15
  147.           Addresses and IRQs for COM1 and COM2 . . . . . . . . . . . .   15
  148.           Defacto standard for COM3 and COM4 . . . . . . . . . . . . .   15
  149.           Addresses and IRQ for COM3 through COM8 on the PS/2  . . . .   15
  150.  
  151.      Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .   16
  152.  
  153.  
  154.  
  155.  
  156.                                                                           1
  157.  
  158.  
  159.  
  160.  
  161.  
  162.  
  163.  
  164.  
  165.  
  166.  
  167.  
  168.  
  169.                                  WHAT IS VMODEM
  170.  
  171.      Vmodem is a software implementation of a modem, referred to as a
  172.      Virtual Modem.  Basically, it attempts to fake out other software
  173.      (like terminal programs) into believing they are accessing a real
  174.      modem.  Vmodem will turn any Terminal into a Telnet Client, and any
  175.      BBS into a Telnet Server.
  176.  
  177.      Normal (real) modems provide an interface that allows terminal
  178.      programs to pass digital information across telephone lines.  Vmodem
  179.      does the same thing from the application (terminal) program's point of
  180.      view.  However, the other side of Vmodem is not a phone line, but a
  181.      digital network like Internet.  Thus, Vmodem allows the hoards of
  182.      communications programs to pass information across Internet instead of
  183.      using phone lines.
  184.  
  185.      In addition to acting as a Telnet server, Vmodem uses a newly designed
  186.      protocol for communications networks, called the Virtual Modem
  187.      Protocol (VMP).  At this time, no other programs have implemented VMP,
  188.      thus Vmodem is required on both ends of the connection to use the VMP. 
  189.       However, VMODEM.EXE will accept inbound Telnet connections from any
  190.      system, meaning a BBS under vmodem can be accessed by just about
  191.      anyone with an Internet connection.
  192.  
  193.      Future implementations of Vmodem may access networks other than
  194.      Internet and use TCP/IP implementations other than IBM's.  The current
  195.      implementation of Vmodem works only on Internet, using the Internet
  196.      Access Kit (IAK) that is included with OS/2 V3 and IBM's TCP/IP (for
  197.      OS/2) version 2.0, with the August 1994 CSD applied.
  198.  
  199.      A single invocation of Vmodem can service all of the Internet ports
  200.      defined in the SIO command line.
  201.  
  202.  
  203.  
  204.  
  205.      2
  206.  
  207.                        DISTRIBUTION, ORDERING AND SUPPORT
  208.  
  209.      Distribution and Ordering
  210.  
  211.      Vmodem is a part of a larger package collectively known as SIO.  The
  212.      entire package collectively known as SIO is ShareWare.  It is not free
  213.      software or freeware.  See LICENSE.TXT and ORDER.TXT for additional
  214.      information.  The ShareWare version of SIO is distributed
  215.      electronically.  One may check their favorite electronic hangout for
  216.      the latest version of SIO.  The latest copy of the ShareWare version
  217.      is always posted for downloading from the BBS at 1-304-255-7903 or
  218.      vmbbs.gwinn.com and www.gwinn.com.  ShareWare versions of SIO can also
  219.      be downloaded from the CompuServe Forum OS2BVEN, library 4.
  220.  
  221.      Registered versions of SIO are distributed by US Mail and
  222.      electronically from the SIO Distribution and Support BBS.  Users
  223.      desiring to register electronically, may call the BBS and register on
  224.      line (1-304-255-7903 or vmbbs.gwinn.com) and www.gwinn.com, and
  225.      immediately download their registered version of SIO.  Use the ORDER
  226.      command at the main BBS prompt.
  227.  
  228.      Registrations/Orders can also be placed by phone, mail, FAX, and
  229.      email.  See the front cover of this manual for the phone numbers and
  230.      addresses.  Also see ORDER.TXT for and order form that may be used.
  231.  
  232.      Support
  233.  
  234.      Only product support is provided, user support for Vmodem is NOT
  235.      provided.  That is, help with application program configuration, modem
  236.      init strings etc, is not provided.  Product information such as bug
  237.      reports, suggestions, and information about incompatibilities are
  238.      welcome.  They should be sent to one of the following addresses.
  239.  
  240.  
  241.                                       Email
  242.                               CompuServe 71154,575
  243.                              Internet ray@gwinn.com
  244.                                FAX 1-304-255-7902
  245.                       BBS 1-304-255-7903 or vmbbs.gwinn.com
  246.  
  247.  
  248.  
  249.  
  250.                                                                           3
  251.  
  252.                                    QUICK START
  253.  
  254.  
  255.      If some of your applications do not work, it is probably due to the
  256.      timing difference between the virtual modem and real modems.  These
  257.      type of problems are NOT bugs in Vmodem, but in the application itself
  258.      and should be reported to the support department for the application
  259.      program.  Thus, messages saying that application XYZ does not work are
  260.      probably of no value and may be ignored.
  261.  
  262.      The Good Stuff Starts Here:
  263.  
  264.      If you do not have TCP/IP up and running on your system, forget it,
  265.      there is no quick start.  If TCP/IP is running on your system then
  266.      read on.
  267.  
  268.      Users of the IBM Internet Access Kit (IAK) and IBM's SLIP be sure to
  269.      execute MODE COMn DTR=ON somewhere before you attempt to dial in.
  270.  
  271.      First, you must define one or more Virtual Modem ports in the SIO.SYS
  272.      command line and reboot.  DO NOT DEFINE A PORT THAT IS CONNECTED TO A
  273.      REAL MODEM AS AN INTERNET PORT.  Defining a Virtual Modem port simply
  274.      requires that you use the word "Internet" instead of the I/O port
  275.      address in the SIO command line.  Do not forget to assign the DOS
  276.      reflection stuff if you will use the port from DOS sessions.  An SIO
  277.      command line example using COM4 as a Virtual Modem is:
  278.  
  279.      DEVICE=SIO (COM1,3F8,4) (COM4,INTERNET:2E8,NONE:3)
  280.  
  281.      The ":2E8" and the ":3" in the command line tells SIO to reflect data
  282.      to DOS sessions on virtual I/O port 2E8 and virtual IRQ3.  The "NONE"
  283.      in the command line indicates that no real IRQ is used.
  284.  
  285.      After you have made the SIO command line changes, and rebooted, you
  286.      must first activate TCP/IP.  Users of the IBM Internet Access Kit must
  287.      initiate a connection in the normal manner before Vmodem will start. 
  288.      After TCP/IP is activated, type Vmodem at any OS/2 prompt.  The Vmodem
  289.      display attempts to simulate a modem display.  An activity log will
  290.      start at the bottom of the display and scroll up to the bottom of the
  291.      simulated LED display.  If you wish, you can use "START /min Vmodem"
  292.      to invoke Vmodem in your TCP/IP start up scripts, TCPEXIT.CMD is the
  293.      best place.  Hit Control C if you wish to terminate Vmodem, but you
  294.      must leave it running if you want Virtual Modem support.
  295.  
  296.  
  297.  
  298.  
  299.      4
  300.  
  301.  
  302.      Once Vmodem is started, any access to COM4 (in this example) will go
  303.      out over the Internet.  Bring up your favorite terminal program,
  304.      configured for COM4, and type "AT?" for a list of supported AT
  305.      commands.  To dial out, type ATDT inetaddr.com, of course you must use
  306.      a real Internet address.
  307.  
  308.      As of this writing, there are several BBSes available for incoming
  309.      calls using Vmodem.  Their Internet addresses are:
  310.  
  311.         vmbbs.gwinn.com           SIO Support in Virginia
  312.         199.100.191.2             Bob Juge in Houston Texas
  313.         199.67.41.2               PCBOARD, Clark Development
  314.         198.69.157.10             Steve Haynes, in Virginia
  315.         bbs.tfb.com               File Bank BBS
  316.         bbs.multinet.com          Paul Breedlove, Multinet
  317.         199.3.36.205              Steve Schmidt in Chicago Illinois
  318.         198.96.20.209             Steven Bonisteel in Canada
  319.         bbs.fidouk.org            Jon Morby in England
  320.         198.17.249.111            Pete Link in USA
  321.         199.165.149.4             Pete Person in Washington State
  322.         bbs.adam.anet.cz          Tomas Kucera in Prague, CZ
  323.         202.12.87.130             Russell Coker, in Australia
  324.         volvo.datacomm.com        Tony Wagner, West Coast USA
  325.         198.70.175.40             Bob Palmer, Belton MO
  326.         199.190.72.11             Patty and Roger Morris, LA
  327.         203.4.149.97              Dave Blears, Australia
  328.         204.91.224.2              Bridgewater, New Jersey
  329.         199.227.57.1              Steve Tower, Florida (I think)
  330.         tgax.com                  Sysop Adam Shiffman
  331.         bbs.os2bbs.com            Pete Norloff, OS/2 Shareware BBS
  332.         vegas.roc.servtech.com    Mike Utell
  333.         204.177.236.30            Stephen Albinda
  334.         os2nw.inetnw.com          Dennis Peterson
  335.         blast.neta.com            Blastronics
  336.         #os2nw.inetnw.com         OS/2 Northwest BBS, Bellevue, WA
  337.         131.252.72.105            The PSU Econometrics Lab BBS
  338.         199.1.42.100              Gary Butters, Irving Texas
  339.         bbs.abaforum.es           David Llamas, Barcelona Spain
  340.         142.222.15.220            Mohawk College, Hamilton Ontario Canada
  341.         gateway.execnet.com       Ken Prevo
  342.         204.157.224.247           Leroy Devries
  343.         155.212.31.34             Richard Ploski
  344.         snoval.aa.net             Larry Devers, Seattle WA
  345.         199.1.42.117              Chuck Hogard, Grand Prairie, Tx
  346.         october.com               Bob Quinlan, Sunnyvale, CA
  347.         198.110.68.22             Walter Martin Braunohler
  348.         204.191.50.2              Jim Wright
  349.         199.3.29.10               Gene Angel
  350.         bbs.gco.com               Bill Cook, Greater Chicago Online
  351.         onestop.donet.com         Anthony Cogan
  352.         hightech.iadfw.net        Brent Alberts, Dallas Texas
  353.  
  354.  
  355.  
  356.  
  357.                                                                           5
  358.  
  359.                                 GETTING IT GOING
  360.  
  361.  
  362.                                  TCP/IP Required
  363.  
  364.      The current (first) implementation of Vmodem and works only with the
  365.      Internet Access Kit (IAK) that is included with OS/2 V3 and IBM's
  366.      TCP/IP V2.0 with the August 1994 CSD applied.  Contact IBM for
  367.      information about obtaining their TCP/IP and the CSD update.
  368.  
  369.      Prior to executing Vmodem, you should have TCP/IP installed and
  370.      operational on your system.  The author is far from an Internet or
  371.      TCP/IP expert (more like a novice) so you are on your own in getting
  372.      TCP/IP up on your system.
  373.  
  374.      Users of the IBM Internet Access Kit (IAK) and IBM's SLIP be sure to
  375.      execute MODE COMn DTR=ON somewhere before you attempt to dial in.
  376.  
  377.      The Virtual Modem Protocol (VMP) that is implemented by Vmodem uses
  378.      TCP/IP Sockets.  The default port number used by Vmodem is 3141 (the
  379.      first 4 digits of pi, un-rounded).  However, this default port number
  380.      can be overridden by using the SERVICES file in the TCP/IP ETC
  381.      directory.  If the user defines a "Well-Known Port" called "vmodem"
  382.      (lower case) in the SERVICES file, then that port will be used instead
  383.      of 3141.  The port number 3141 has been assigned to the Virtual Modem
  384.      Protocol (VMP) by the Internet Assigned Numbers Authority (IANA).  The
  385.      name associated with port 3141 is "vmodem" (without the quotes). 
  386.      Likewise, the Telnet Server in Vmodem can be directed to use any port
  387.      number by adding a "Well-Known Port" called VMOTelnet to your SERVICES
  388.      file.  The Telnet Server defaults to port 23 (the standard Telnet
  389.      port).
  390.  
  391.                             The SIO.SYS command line
  392.  
  393.      If you do not already know what SIO.SYS is, you should start with the
  394.      SIO Users Manual which should be a part of the same package that
  395.      contained this manual.  The Vmodem specific part of the SIO command
  396.      line is only documented here.
  397.  
  398.      The changes to the SIO command line to define a Virtual Modem Port(s)
  399.      is simple.  All one does is to replace the I/O port number with the
  400.      word "Internet" (without the quote marks).  I/O port number are
  401.      usually hexadecimal numbers like 3F8 (for COM1) and it is this number
  402.      that is replaced with the word "Internet".  A command line example for
  403.      a Virtual Modem on COM4 that will only be accessed by native OS/2
  404.      programs is as follows:
  405.  
  406.      DEVICE=SIO.SYS (COM1) (COM4,INTERNET,NONE)
  407.  
  408.      The "NONE" in the above simply states that no IRQ is being used.
  409.  
  410.  
  411.  
  412.  
  413.      6
  414.  
  415.  
  416.      If one wishes to access the Virtual Modem from DOS and/or Windows
  417.      sessions, the command line is a little more complicated.  You must
  418.      tell SIO where to present the information to the DOS/Windows session. 
  419.      That is, you must tell SIO (really VSIO) the virtual I/O port number
  420.      and the virtual IRQ that the DOS/Windows application uses to access
  421.      the port.  Continuing to use COM4 as the example should be changed to:
  422.  
  423.      DEVICE=SIO.SYS (COM1) (COM4,INTERNET:2E8,NONE:3)
  424.  
  425.      This command line will present a standard COM4 to the DOS and or
  426.      Windows session(s).
  427.  
  428.  
  429.  
  430.  
  431.                                                                           7
  432.  
  433.                                 THE VIRTUAL MODEM
  434.  
  435.      Starting the Virtual Modem is about as simple as it can be.  Simply
  436.      type VMODEM or START /MIN VMODEM at any OS/2 prompt, there are no
  437.      required command line parameters.  Vmodem then just sits there and
  438.      displays some minimal activity reports.  Vmodem does have one optional
  439.      command line parameter, a log file name.  If a log file name is given,
  440.      all information displayed on the Vmodem screen is written to the file.
  441.  
  442.      Once started, and with the above mentioned additions to the SIO
  443.      command line, application programs should see a relatively simple
  444.      modem that implements a very basic set of AT commands.  Most of the AT
  445.      commands of a real modem simply do not apply in the environment that
  446.      the Virtual Modem is being used in.  For example, flow control is
  447.      automatic (done by TCP/IP) so the virtual modem needs no flow control
  448.      commands.
  449.  
  450.      Remember, the Virtual Modem has no memory, so any needed modem init
  451.      string needs to be presented each time an application program is
  452.      executed.
  453.  
  454.      AT Commands Supported
  455.  
  456.           ?    Display a list of supported AT commands.
  457.  
  458.           Cn   CompuServe upload kludge, C0 disables, C1 enables.  Try ATC1
  459.           if you have problems uploading to CompuServe.
  460.  
  461.           D?   Display some dialing examples.
  462.  
  463.           DT   Dial the following internet address.
  464.  
  465.           DP   Dial the following internet address.
  466.  
  467.           DV   Dial a specific VMODEM port at the following internet
  468.           address.  ie "ATDV 3 vmbbs.gwinn.com" will dial the third VMODEM
  469.           port at the given internet address.
  470.  
  471.           En   Command mode local echo. E0 disables echoing, E1 enables
  472.           echoing.
  473.  
  474.           Fn   Local echo after connection. F0 enables (half duplex), and
  475.           F1 disables.  This command is currently disabled.
  476.  
  477.           Hn   On/Off hook control. H0 or H alone to hang up, H1 go off
  478.           hook.
  479.  
  480.           Mn   Incoming connect notify.  M0 or M alone inhibits speaker
  481.           sounds, and M1 enables speaker sound when an incoming connect is
  482.           detected.
  483.  
  484.           Sr=n Set S register r to n.  The supported set of S registers is
  485.           given below.
  486.  
  487.           Sr=? Display the current value (setting) of S register r.
  488.  
  489.  
  490.  
  491.  
  492.      8
  493.  
  494.           S?   Display supported S register information.
  495.  
  496.           Z    Virtual modem reset.
  497.  
  498.           &Cn  Carrier detect operation, &C0 always on, &C1 normal.
  499.  
  500.           &Sn  DSR operation, &S0 always on, &S1 normal.
  501.  
  502.           &T   Allows specification of a quoted string that Vmodem will
  503.                report to a remote as the terminal type for Telnet sessions.
  504.                ie AT&T"ANSI".  This setting is reset to "ANSI" when ATZ is
  505.                executed.
  506.  
  507.           &V   View virtual modem settings.
  508.  
  509.  
  510.      S Registers Supported
  511.  
  512.           S0   Zero disables automatic answer, non-zero enables automatic
  513.           answer.
  514.  
  515.           S7   Number of seconds to wait for carrier (connection) when
  516.           dialing.
  517.  
  518.           S19  Set inactivity timer (automatic disconnect) in minutes (0
  519.           disables).  This S register is currently ignored by Vmodem.
  520.  
  521.           S38  Duration in seconds before disconnect when DTR drops.  This
  522.           S register is currently ignored by Vmodem.
  523.  
  524.  
  525.      Result Codes
  526.  
  527.           NO CARRIER.  This result is returned when a dialing timeout
  528.           occurs or when an established connection terminates.  The timeout
  529.           interval is specified by S register 7.
  530.  
  531.           NO DIALTONE.  This result code means that Vmodem could not obtain
  532.           address information from the name server (or HOSTS file), or that
  533.           the given Internet address is invalid.  This result code is also
  534.           returned if TCP/IP is not responding.
  535.  
  536.           BUSY.  This result means that a connection to the vmodem port was
  537.           established at the remote site.  However, no available
  538.           communications ports (COM1, COM2 etc) were available to assign
  539.           the connection to.
  540.  
  541.           CONNECT 57600/ARQ/VMP.  This result means the dialing and session
  542.           establishment occurred without problems and is ready for user
  543.           data flow using the Virtual Modem Protocol.  The given bit rate
  544.           of 57600 is given only to satisfy the application program.  The
  545.           actual data rate is not know to Vmodem.
  546.  
  547.           CONNECT 57600/ARQ/TEL.  This result is the same as above except
  548.           the protocol being used is Telnet. 
  549.  
  550.  
  551.  
  552.  
  553.                                                                           9
  554.  
  555.           RING.  This result means that an incoming connection has been
  556.           made with a remote system and that the local Vmodem is sending a
  557.           ring indication to the assigned communications port (COM1 etc).
  558.  
  559.           RINGING.  This result means that an outgoing connection has been
  560.           made with a remote system and that the remote Vmodem is sending a
  561.           ring indication to the communications port.
  562.  
  563.  
  564.      Caveats
  565.  
  566.      The modem command mode escape sequence, usually +++, is not
  567.      implemented by the Virtual Modem.  Once the Virtual Modem enters data
  568.      mode, the only way to return to command mode is to drop DTR.  This is
  569.      why the DTR override AT command is not supported.  Implementation of
  570.      the escape (+++) feature would have a severe impact on processor
  571.      overhead and Virtual Modem throughput.
  572.  
  573.      Numeric result codes are not currently implemented, they may be at a
  574.      future time.
  575.  
  576.      Some application programs (like ProComm) translate letters into
  577.      numbers. I have not found a way to use ProComm's dialing directory to
  578.      pass alphabetic strings like those used in Internet addresses.
  579.  
  580.      Other applications (like TE/2) will pass alphabetic strings when they
  581.      are enclosed in double quotes.  Thus, an Internet address can be
  582.      entered into TE/2's dialing directories in the form "vmbbs.xyz.com". 
  583.      The trailing quote is not really necessary as a trailing carriage
  584.      return will also terminate the address.
  585.  
  586.  
  587.  
  588.  
  589.      10
  590.  
  591.                                     SECURITY
  592.  
  593.      Discussion
  594.           Some believe that logging onto a BBS via Internet is not as
  595.           secure as logging onto the same BBS using phone lines.  There are
  596.           rumors of "sniffer" programs on the Internet looking for credit
  597.           card numbers, passwords and the like.  The phone line analogy of
  598.           a sniffer is a tapped phone line.  The author has heard the
  599.           rumors, but has never heard of a confirmed case of a sniffer that
  600.           really worked.
  601.  
  602.           Vmodem attempts to remove the problem of passwords being sent in
  603.           the clear by implementing a "Shared Secret" password encryption
  604.           method, an Internet standard (see RFC 1321 and RFC 1725). 
  605.           Depending on the BBS implementation, the "Shared Secret" may (or
  606.           may not) be your password.  Contact your BBS Sysop, or BBS
  607.           supplier if you have questions about the details.
  608.  
  609.           The way the Shared Secret works is that the BBS sends a unique
  610.           string each time a connection is made.  The contents of the
  611.           unique string is not important so long as it is unique
  612.           (different) each time a logon occurs.  Your Shared Secret
  613.           (probably your password) is then appended to the unique string
  614.           and processed by something called the MD5 algorithm that produces
  615.           yet a third string which is sent back to the BBS.  The BBS also
  616.           processes the unique string and the Shared Secret by the MD5
  617.           algorithm and compares the result to the one received from the
  618.           user.  If they match, then the BBS can proceed without directly
  619.           asking the user for their password.  The unique string and the
  620.           MD5 processing insure that a logon sequence is NEVER the same and
  621.           the Shared Secret is never directly send across the network.  The
  622.           SIO support BBS supports the Shared Secret login.
  623.  
  624.      Vmodem's Implementation
  625.  
  626.           Vmodem allows the user to specify the Shared Secret as a quoted
  627.           string in the dialing command.  For example, if Vmodem processes
  628.           the following:
  629.  
  630.                ATDT vmbbs.gwinn.com "Hi There"
  631.  
  632.           The Shared Secret is "Hi There" (the Shared Secret does not
  633.           include the quote marks).  If Vmodem process the above ATDT
  634.           command and sees the unique string from the BBS, then a proper
  635.           response is returned to the BBS.  The reader should note that the
  636.           Shared Secret is case sensitive.  That is "hi there" is NOT the
  637.           same as "Hi There".
  638.  
  639.  
  640.      Developers Information
  641.  
  642.           A document for developers describing the Share Secret
  643.           procedure and source code for the MD5 algorithm is available
  644.           from the author.  Send requests for MD5.ZIP via email to
  645.           ray@gwinn.com.
  646.  
  647.  
  648.  
  649.  
  650.                                                                          11
  651.  
  652.                                 DIALING EXAMPLES
  653.  
  654.      Vmodem will translate any "*" (asterisk) in the dialing string to a
  655.      "." (dot).  Some terminal programs refuse to pass the dot, but should
  656.      pass the asterisk because it is a key on telephone keypads.
  657.  
  658.      The following are a few dialing examples to numeric type internet
  659.      addresses.
  660.  
  661.  
  662.      ATDT199.100.191.2              Bob Juge in Houston Texas
  663.      ATDT 199.67.41.2               PCBOARD, Clark Development
  664.      ATDT 199*3*36*205              Steve Schmidt in Chicago Illinois
  665.      atdt198.96.20.209              Steven Bonisteel in Canada
  666.      ATDT194*70*36*10               Jon Morby in England
  667.  
  668.  
  669.      Vmodem implements two different Internet protocols, Telnet and VMP. 
  670.      VMP is Vmodem to Vmodem only, but is true binary while Telnet it not. 
  671.      The Internet protocol that Vmodem uses when making an outgoing connect
  672.      is specified in the ATDT command by preceding the Internet address
  673.      with a pound sign "#".  If the pound sign precedes the Internet
  674.      address, then VMP is used. Otherwise, Telnet is used.  Again, the
  675.      reader should note that VMP should be used only when you know your are
  676.      connecting to another Vmodem on the remote.
  677.  
  678.      The following are a few dialing examples to non-existent internet
  679.      addresses using host names.  At least I believe they do not exist.
  680.  
  681.      ATDT vmbbs.gwinn.com     (use Telnet protocol)
  682.  
  683.      ATDT #vmbbs.gwinn.com    (use VMP protocol)
  684.  
  685.      ATDTvmbbs.internet.com
  686.  
  687.      ATDP "BBS.INTERNET.COM"
  688.  
  689.      ATDT VMBBS.INTERNET.COM
  690.  
  691.      ATDT vmbbs.internet.com 1234
  692.  
  693.      In the above example, the user is specifying a port override. 
  694.      Normally Vmodem will attempt a connect on port 3141 (the official port
  695.      for vmodem).  In this case, the dialer is telling Vmodem to use port
  696.      1234 instead of 3141.
  697.  
  698.  
  699.  
  700.  
  701.      12
  702.  
  703.                                      Telnet
  704.  
  705.      Vmodem implements a Telnet server meaning that inbound Telnet
  706.      connections are accepted.  The "well-know name" for the Telnet server
  707.      is VMOTelnet.  The default port is the standard Telnet port, 23.  The
  708.      port used by the Telnet server can be changed by adding a line to the
  709.      SERVICES file in your ETC directory and assigning VMOTelnet to another
  710.      port.  This can also be done to disable the Telnet server part of
  711.      Vmodem.
  712.  
  713.      The best Telnet Client to use to connect to a Vmodem Telnet Server is
  714.      a terminal program also executing under Vmodem.  Vmodem can
  715.      concurrently act as a Client and Server, meaning Vmodem can connect to
  716.      itself on the same system.  This feature is a very good testing tool. 
  717.      Of course, you can connect from a remote system as well.
  718.  
  719.      IBM's Telnet Client
  720.  
  721.      IBM's Telnet seems to be a little finicky, but I did get it to connect
  722.      and work with a Vmodem host.  I executed IBM's Telnet with the
  723.      following command line:
  724.  
  725.                telnet -t ANSI -c NONE
  726.  
  727.      In addition, after Telnet loads I had to enter the following:
  728.  
  729.                toggle crlf
  730.  
  731.      BE SURE TO ENTER THE ABOVE COMMAND AFTER EXECUTING IBM'S TELNET. 
  732.      Things are really screwy if you do not.
  733.  
  734.  
  735.  
  736.  
  737.                                                                          13
  738.  
  739.                          Development and Debugging Tools
  740.  
  741.      Vmodem's Semaphores
  742.  
  743.      Vmodem creates two system semaphores for each supported port.  One of
  744.      the semaphores is useable by 16 bit code, the other is usable by 32
  745.      bit code.  Both the 16 and 32 bit semaphores are set and cleared at
  746.      the same time.  The names are \SEM\VMODEMn and \SEM32\VMODEMn, where n
  747.      is the port number (1 or more decimal digits).  The semaphores are set
  748.      at load time and when a disconnect occurs.  The semaphores are cleared
  749.      when Vmodem starts "ringing" a communications port indicating an
  750.      incoming connect attempt.  Programs can test the semaphore(s) and
  751.      spawn a program to process an incoming call (connect).
  752.  
  753.      The Poor Man's Line Monitor (PMLM.EXE)
  754.  
  755.      PMLM is basically of interest to developers of comm applications and
  756.      those providing technical support for those applications.  This SIO
  757.      utility is released largely (in self defense) in the hope that some
  758.      users can diagnose their own problems.  PMLM's feature of saving trace
  759.      information to disk will only work with registered and beta versions
  760.      of SIO.
  761.  
  762.      PMLM provides basic line monitoring for OS/2, DOS and Windows comm
  763.      programs.  All characters sent or received by application programs are
  764.      displayed in the upper portion of the screen.  Receive characters are
  765.      displayed as "white on blue" and transmitted characters are displayed
  766.      "yellow on violet".  Line signals, such as CTS are displayed as "dim
  767.      white on red" when turned off and "bright white on red" when turned
  768.      on.  In addition, a signal's transition to OFF is displayed in lower
  769.      case and a signal's transition to ON is displayed in upper case.
  770.  
  771.      Status information is displayed in the lower part of the screen.  A
  772.      bright white display means the signal is on, a dim white indicates
  773.      that the signal is off.  In addition, when bright,  Rxoff and Txoff
  774.      indicate the SIO has sent (Txoff) or received (Rxoff) an Xoff, and an
  775.      Xon is pending.
  776.  
  777.      When a DOS or Windows session uses a comm port, an additional line of
  778.      signal status appears.  This status line shows the state of the
  779.      virtual UART's signals.  Only the signals which MAY be different from
  780.      the real UART's signals are shown.
  781.  
  782.      "Rx Chars" and "Tx Chars" reflects the number of characters in SIO's
  783.      receive and transmit buffers respectively.
  784.  
  785.      The last line on the screen shows the keys (from the keyboard) that
  786.      PMLM will recognize.  The bright character shows the key to hit for
  787.      the associated function.  The font keys will not work in a windowed
  788.      OS/2 session.
  789.  
  790.  
  791.  
  792.  
  793.      14
  794.  
  795.  
  796.      PMLM's command line requires one parameter, the comm port number, and
  797.      optionally accepts an additional parameter giving a save trace file
  798.      name.  For example, PMLM 1 COM1INFO.TEC will monitor COM1 and save ALL
  799.      of the communications traffic in the file COM1INFO.TRC.  The trace
  800.      files created by PMLM contain exactly the same information that is
  801.      displayed by PMLM, video attributes and all.
  802.  
  803.      VIEWPMLM.EXE may be used to view trace files created by PMLM. 
  804.      VIEWPMLM.EXE requires one parameter, the trace file name.  The user
  805.      can use the keys UP, DOWN, PAGEUP, PAGEDOWN, HOME, and END to navigate
  806.      the saved trace file.  Registered SIO users may send VIEWPMLM.EXE
  807.      (along with saved trace files) to anyone for technical support
  808.      purposes.
  809.  
  810.      VIEWPMLM can be used in native DOS, in DOS sessions under OS/2, and in
  811.      OS/2 sessions.  This means that even those developers and support
  812.      people need not have OS/2 to view the captured communications data
  813.      created by PMLM.
  814.  
  815.      SIO's Utility (SU.EXE)
  816.  
  817.      This utility program has several useful commands.  You can obtain a
  818.      list of the available commands by typing SU at any command line prompt
  819.      without any parameters.  One very useful command is SU IRQS.  This
  820.      command will show IRQs that currently free for use.  Commands are
  821.      provided allowing user control (missing from MODE) are available. 
  822.      Status commands provide a wealth of diagnostic information.
  823.  
  824.  
  825.  
  826.  
  827.                                                                          15
  828.  
  829.                   Appendix A, Hardware Port and IRQ Assignments
  830.  
  831.      I have obtained the following information from various sources. 
  832.      Accuracy is not guaranteed.  In fact, nothing in this document is
  833.      guaranteed.
  834.  
  835.      Addresses and IRQs for COM1 and COM2
  836.  
  837.           COM1 uses 03F8h and IRQ4
  838.           COM2 uses 02F8h and IRQ3
  839.  
  840.      Defacto standard for COM3 and COM4 for PC, XT and AT
  841.  
  842.           COM3 uses 03E8h and IRQ4
  843.           COM4 uses 02E8h and IRQ3
  844.  
  845.      Addresses and IRQ for COM3 through COM8 on the PS/2
  846.  
  847.           COM3 uses 3220h and IRQ3
  848.           COM4 uses 3228h and IRQ3
  849.           COM5 uses 4220h and IRQ3
  850.           COM6 uses 4228h and IRQ3
  851.           COM7 uses 5220h and IRQ3
  852.           COM8 uses 5228h and IRQ3
  853.  
  854.      All PCs (known to the author) prior to the PS/2 and EISA only use 10
  855.      bits to address hardware I/0 ports.  Systems prior to the PS/2 and
  856.      EISA can not address the standard PS/2 addresses for COM3 through
  857.      COM8.  If an AT or below attempts to address COM3 through COM8 using
  858.      the PS/2 addresses, only the low 10 bits of the address are used. 
  859.      That is, the high 6 bits of the address will be ignored by the
  860.      hardware.  This means that any reference to COM3 through COM8 will
  861.      actually address ports 220h through 22Fh on older PCs.
  862.  
  863.      One should avoid expansion boards that use ports 220h through 22Fh
  864.      unless the expansion board is a serial I/O board. 
  865.  
  866.      SIO will (attempt to) determine the hardware architecture (ISA/EISA
  867.      and PS/2) that it is being executed on and use the appropriate
  868.      hardware port addresses for COM1 thru COM4 as defaults.
  869.  
  870.  
  871.  
  872.  
  873.      16
  874.  
  875.                                       Index
  876.  
  877.      Addresses and IRQ for COM3 through COM8 on the PS/2 . . . . . . . . 15
  878.      Addresses and IRQs for COM1 and COM2  . . . . . . . . . . . . . . . 15
  879.      Appendix A, Hardware Notes  . . . . . . . . . . . . . . . . . . . . 15
  880.      AT Commands Supported . . . . . . . . . . . . . . . . . . . . . . .  7
  881.      BBS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  2
  882.      Caveats . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  9
  883.      Defacto standard for COM3 and COM4  . . . . . . . . . . . . . . . . 15
  884.      Default port number . . . . . . . . . . . . . . . . . . . . . . . .  5
  885.      Development and Debugging Tools . . . . . . . . . . . . . . . . . . 13
  886.      DIALING EXAMPLES  . . . . . . . . . . . . . . . . . . . . . . . . . 11
  887.      Distribution  . . . . . . . . . . . . . . . . . . . . . . . . . . .  2
  888.      GETTING IT GOING  . . . . . . . . . . . . . . . . . . . . . . . . .  5
  889.      IBM's Telnet Client . . . . . . . . . . . . . . . . . . . . . . . . 12
  890.      Ordering  . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  2
  891.      PMLM.EXE  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
  892.      Result Codes  . . . . . . . . . . . . . . . . . . . . . . . . . . .  8
  893.      S Registers Supported . . . . . . . . . . . . . . . . . . . . . . .  8
  894.      SECURITY  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
  895.      Semaphores  . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
  896.      SIO's Utility (SU.EXE)  . . . . . . . . . . . . . . . . . . . . . . 14
  897.      Support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  2
  898.      TCP/IP Required . . . . . . . . . . . . . . . . . . . . . . . . . .  5
  899.      TCP/IP Sockets  . . . . . . . . . . . . . . . . . . . . . . . . . .  5
  900.      Telnet  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
  901.      The SIO.SYS command line  . . . . . . . . . . . . . . . . . . . . .  5
  902.      THE VIRTUAL MODEM . . . . . . . . . . . . . . . . . . . . . . . . .  7
  903.      VIEWPMLM.EXE  . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
  904.      WHAT IS VMODEM  . . . . . . . . . . . . . . . . . . . . . . . . . .  1
  905.